//
// Created by lzw on 24-10-19.
//

#ifndef CMONKEY_PARSER_H
#define CMONKEY_PARSER_H

#include "lexer.h"


struct s_parser{
    struct s_lexer lexer;
    struct s_token current;
    struct s_token peek;
};

struct s_parser new_parser(struct s_lexer *lexer);
void free_parser(struct s_parser *parser);
struct s_ast_node *parse(struct s_parser *parser);

void next_token(struct s_parser *parser);




#endif // CMONKEY_PARSER_H
